Skip to content

feat(remote-control): add daemon pairing command - #29913

Merged
apanasenko-oai merged 1 commit into
mainfrom
codex/remote-control-pair-command
Jun 25, 2026
Merged

feat(remote-control): add daemon pairing command#29913
apanasenko-oai merged 1 commit into
mainfrom
codex/remote-control-pair-command

Conversation

@apanasenko-oai

@apanasenko-oai apanasenko-oai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Why

Users who run Codex remote control through daemon mode can keep the daemon running, but they do not have a CLI path to mint the short-lived manual pairing code needed to connect another device. Without this command, they need to speak app-server JSON-RPC directly.

Related: #25675

What Changed

  • Added codex remote-control pair, which connects to the existing daemon control socket and calls remoteControl/pairing/start with manualCode: true.
  • Kept the command non-lifecycle-mutating: it does not start, enable, or restart the daemon.
  • Human output labels the manual code as Pairing code: ...; --json preserves the full pairing response.
  • Added daemon socket-client, CLI formatting, and parser coverage.

Verification

  • remote_control_client::tests::start_pairing_requests_manual_code verifies the daemon client sends { "manualCode": true } and parses the complete response.
  • remote_control_cmd::tests::remote_control_pairing_human_output_labels_the_manual_code verifies the human-facing output.

@apanasenko-oai
apanasenko-oai marked this pull request as ready for review June 24, 2026 21:24
@apanasenko-oai
apanasenko-oai marked this pull request as draft June 24, 2026 21:25
@apanasenko-oai
apanasenko-oai marked this pull request as ready for review June 24, 2026 21:25
@apanasenko-oai
apanasenko-oai merged commit f4e6aa7 into main Jun 25, 2026
31 checks passed
@apanasenko-oai
apanasenko-oai deleted the codex/remote-control-pair-command branch June 25, 2026 01:00
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants